//
//  HMTestViewController.swift
//  Weibo
//
//  Created by teacher on 2017/6/4.
//  Copyright © 2017年 teacher. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        addPushButton()
    }
    
    
    //  添加导航栏push
    private func addPushButton() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushAction))
    }
    
    //  MARK:   -- push按钮点击事件
    @objc private func pushAction() {
        //  push
        let testVc = HMTestViewController()
        self.navigationController?.pushViewController(testVc, animated: true)
    }

    
}
